﻿using ERP.Common.Results;
using ERP.ERPSystem.HumanResources.Dto;
using ERP.ERPSystem.ProductionSystem.Dto;
using ERP.Team.ProductionSystem;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace ERP.ERPSystem.ProductionSystem
{
    /// <summary>
    /// 生产系统-设备管理-设备台账
    /// </summary>
    public interface IDeviceledgerService:IApplicationService
    {
        /// <summary>
        /// 添加设备台账
        /// </summary>
        /// <param name="materialproductDTO"></param>
        /// <returns></returns>
        Task<int> AddDeviceledger(DeviceledgerDTO deviceledgerDTO);
        
        /// <summary>
        /// 更新设备台账
        /// </summary>
        /// <param name="deviceledgerDTO"></param>
        /// <returns></returns>
        Task<int> UpdateDeviceledger(DeviceledgerDTO deviceledgerDTO);
        
        /// <summary>
        /// 删除设备台账
        /// </summary>
        /// <param name="id">设备ID</param>
        /// <returns></returns>
        Task<int> DeleteDeviceledger(int id);
        
        /// <summary>
        /// 批量删除设备台账
        /// </summary>
        /// <param name="ids">设备ID列表</param>
        /// <returns></returns>
        Task<int> DeleteDeviceledgerBatch(List<int> ids);
        
        /// <summary>
        /// 获取设备台账信息
        /// </summary>
        /// <param name="code">设备编码</param>
        /// <param name="name">设备名称</param>
        /// <param name="page">当前页</param>
        /// <param name="limit">页容量</param>
        /// <returns></returns>
        Task<List<DeviceledgerModel>> GetDeviceledgerModel(string? code, string? name);
    }
}
